#include "app_message.h"
#include "log/log.h"

int main(int argc, char const *argv[])
{
    char *json = "{\"conn_type\": 1, \"id\": \"5859\", \"msg\": \"61626364\"}";
    char chars[20];
    int len = app_message_jsonTochars(json, chars, sizeof(chars));
    log_debug("chars: %.*s, len: %d", len, chars, len);
    char *json2 = app_message_charsTojson(chars, len);
    log_debug("json2: %s", json2);
    return 0;
}